﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="GroupMaintenance.aspx.cs" Inherits="App_System_Mst_GroupMaintenance"
    Title="部门维护" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="PanelNavigate" runat="server" />

    <script language="javascript">
    function delmessage(){
        return window.confirm("是否要删除该部门？");
    }
    function addmessage(){
        return window.confirm("是否要更新该部门名称？");
    }
    </script>

    <div>
        <table class="table_border_bg">
            <tr>
                <td align="center">
                    <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="4" ForeColor="Red">
                        <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtGroupIdSel">
                            <cc1:ComAbsParamsAttribute Parameter="部门编号" />
                        </cc1:CheckRequiredAttribute>
                    </cc1:ComValidator>
                    &nbsp;<cc1:ComValidator ID="ComValidator2" runat="server" CheckItems-Capacity="4"
                        ForeColor="Red">
                        <cc1:CheckRequiredAttribute ControlToValidator="txtGroupId" Code="E0082">
                            <cc1:ComAbsParamsAttribute Parameter="部门编号" />
                        </cc1:CheckRequiredAttribute>
                        <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtGroupName">
                            <cc1:ComAbsParamsAttribute Parameter="部门名称" />
                        </cc1:CheckRequiredAttribute>
                    </cc1:ComValidator>
                </td>
            </tr>
        </table>
        <table width="100%">
            <tr>
                <td style="height: 67px">
                    <table class="table_border_line">
                        <tr>
                            <td align="left" colspan="4">

                                <script language="javascript">
                                                (new TitleBar('SearchBar', '检索条件')).showBar();
                                </script>

                            </td>
                        </tr>
                    </table>
                    <table class="table_border_line">
                        <tr>
                            <td style="width: 90px">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap" align="left">
                                部门编号</td>
                            <td width="52%" align="left">
                                <asp:TextBox ID="txtGroupIdSel" runat="server" MaxLength="16"></asp:TextBox>
                            </td>
                            <td align="right">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
                <td width="15%" style="height: 67px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="btnSelect" runat="server" Text="检索" CssClass="button" Height="21px"
                        Width="61px" OnClick="btnSelect_Click" />
                </td>
            </tr>
        </table>
        <br />
        <table class="no_border_bg">
            <tr>
                <td style="height: 90px">
                    <table class="table_border_line">
                        <tr>
                            <td align="left" colspan="6">

                                <script language="javascript">
                                                (new TitleBar('SearchBar1', '系统人员信息')).showBar();
                                </script>

                            </td>
                        </tr>
                    </table>
                    <table class="table_border_line">
                        <tr>
                            <td style="width: 90px">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap" align="left">
                                部门编号</td>
                            <td align="left" nowrap>
                                <asp:TextBox ID="txtGroupId" runat="server" ReadOnly="True" Width="150px"></asp:TextBox>
                                &nbsp;<span class="notice">*</span>
                            </td>
                            <td colspan="3" align="left">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 90px">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap" align="left">
                                部门名称</td>
                            <td align="left" nowrap>
                                <asp:TextBox ID="txtGroupName" runat="server" Width="150px"></asp:TextBox>
                                &nbsp;&nbsp;<span class="notice">*</span></td>
                            <td colspan="3" align="left">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
        <table width="60%">
            <tr>
                <td width="20%" style="height: 23px">
                    <asp:Button ID="btnAdd" runat="server" Text="登录" styleClass="button1" Height="21px"
                        Width="90px" OnClientClick="return addmessage();" OnClick="btnAdd_Click" CssClass="button" /></td>
                <td width="20%" style="height: 23px">
                    <asp:Button ID="btnDel" runat="server" Text="删除" styleClass="button1" Height="21px"
                        Width="90px" OnClientClick="return delmessage();" OnClick="btnDel_Click" CssClass="button" /></td>
                <td width="20%" style="height: 23px">
                    <asp:Button ID="btnCancel" runat="server" Text="取消输入" styleClass="button1" Height="21px"
                        Width="90px" OnClick="btnCancel_Click" CssClass="button" /></td>
                <td width="20%" style="height: 23px">
                    <asp:Button ID="btnExit" runat="server" Text="返回" styleClass="button1" Height="21px"
                        Width="90px" CssClass="button" /></td>
            </tr>
        </table>
        <table class="no_border_bg">
            <tr>
                <td style="height: 110px">
                    <table class="table_border_line">
                        <tr>
                            <td align="left" colspan="6">

                                <script language="javascript">
                                                (new TitleBar('SearchBar2', '系统人员权限')).showBar();
                                </script>

                            </td>
                        </tr>
                    </table>
                    <table class="table_border_line">
                        <tr>
                            <td style="width: 90px">
                                &nbsp;</td>
                            <td style="width: 120px" align="left" nowrap>
                                部门编号</td>
                            <td width="52%" align="left" nowrap height="22">
                                <asp:Label ID="lblGroupId" runat="server"></asp:Label>
                            </td>
                            <td align="right">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" colspan="4">
                                <table width="90%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="50%" nowrap>
                                            可赋予的权限:</td>
                                        <td style="width: 68px">
                                            <br />
                                        </td>
                                        <td width="50%" nowrap>
                                            已赋予的权限:</td>
                                    </tr>
                                    <tr>
                                        <td nowrap style="height: 15px">
                                            <asp:ListBox ID="lstSetPermission" runat="server" Height="150px" Width="100%" SelectionMode="Multiple"
                                                ToolTip="按Ctrl可以取消选择"></asp:ListBox>
                                        </td>
                                        <td align="center" style="padding-left: 5px; padding-right: 5px; height: 15px;">
                                            <asp:Button ID="btnPermissionAdd" runat="server" Text="添加权限-->" styleClass="button1"
                                                Height="21px" OnClick="btnPermissionAdd_Click" CssClass="button" /><br />
                                            <br />
                                            <asp:Button ID="btnPermissionDel" runat="server" Text="<--消除权限" styleClass="button1"
                                                Height="21px" OnClick="btnPermissionDel_Click" CssClass="button" /></td>
                                        <td nowrap style="height: 15px">
                                            <asp:ListBox ID="lstGetPermission" runat="server" Height="150px" Width="100%" SelectionMode="Multiple"
                                                ToolTip="按Ctrl可以取消选择"></asp:ListBox>
                                        </td>
                                    </tr>
                                </table>
                                按Ctrl可以取消选择</td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <br />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table class="no_border_bg">
            <tr>
                <td>
                    <table class="table_border_line">
                        <tr>
                            <td align="left" colspan="4">

                                <script language="javascript">
                                                (new TitleBar('SearchBar3', '系统人员部门')).showBar();
                                </script>

                            </td>
                        </tr>
                    </table>
                    <table class="table_border_line">
                        <tr>
                            <td style="width: 90px">
                                &nbsp;</td>
                            <td style="width: 120px" align="left" nowrap>
                                部门编号</td>
                            <td width="52%" align="left" nowrap height="22">
                                <asp:Label ID="lblUserGroupId" runat="server"></asp:Label>
                            </td>
                            <td align="right">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" colspan="4">
                                <table width="90%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="50%" nowrap>
                                            可添加的职员:</td>
                                        <td style="width: 68px">
                                            <br />
                                        </td>
                                        <td width="50%" nowrap>
                                            已添加的职员:</td>
                                    </tr>
                                    <tr>
                                        <td nowrap style="height: 15px">
                                            <asp:ListBox ID="lstSetUser" runat="server" Height="150px" Width="100%" SelectionMode="Multiple"
                                                ToolTip="按Ctrl可以取消选择"></asp:ListBox>
                                        </td>
                                        <td align="center" style="padding-left: 5px; padding-right: 5px; height: 15px;">
                                            <asp:Button ID="btnGroupAdd" runat="server" Text="添加职员-->" styleClass="button1" Height="21px"
                                                OnClick="btnGroupAdd_Click" CssClass="button" /><br />
                                            <br />
                                            <asp:Button ID="btnGroupDel" runat="server" Text="<--消除职员" styleClass="button1" Height="21px"
                                                OnClick="btnGroupDel_Click" CssClass="button" /></td>
                                        <td nowrap style="height: 15px">
                                            <asp:ListBox ID="lstGetUser" runat="server" Height="150px" Width="100%" SelectionMode="Multiple"
                                                ToolTip="按Ctrl可以取消选择"></asp:ListBox>
                                        </td>
                                    </tr>
                                </table>
                                按Ctrl可以取消选择</td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <br />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
